local more1__chenqing = fk.CreateSkill{
  name = "more1__chenqing",
  tags = { Skill.Limited, Skill.Permanent },
}
Fk:loadTranslationTable{
  ["more1__chenqing"] = "陈情",
  [":more1__chenqing"] = "持恒技，限定技，你即将死亡时，你可以移除“悲笳”的最后二十七个字符，"..
  "然后恢复体力至体力上限，摸四张牌并立即结束当前回合，然后你进行一个额外回合。",

  ["$more1__chenqing1"] = "无论何时何地，我都在你身边。",
  ["$more1__chenqing2"] = "辗转流离，只为此刻与君相遇。",
}


more1__chenqing:addEffect(fk.AskForPeachesDone, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(more1__chenqing.name, false, true) and player.hp < 1 and
      player:usedEffectTimes(more1__chenqing.name, Player.HistoryGame) == 0
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:addPlayerMark(player,"more1__chenqing",1)
    room:recover{ who = player, num = player.maxHp - player.hp,  recoverBy = player,  skillName = more1__chenqing.name, }
    room:drawCards(player,4,more1__chenqing.name)
    room.logic:getCurrentEvent():findParent(GameEvent.Phase):shutdown()



  end,
})

more1__chenqing:addEffect(fk.TurnEnd, {
  mute = true,
  is_delay_effect = true,
  can_trigger = function(self, event, target, player, data)
    return player:usedEffectTimes(more1__chenqing.name, Player.HistoryTurn) > 0 
  end,
  on_cost = function (self, event, target, player, data)
    return true
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:gainAnExtraTurn(true, more1__chenqing.name)
  end,
})






return more1__chenqing